@container: annieditor;

.@{container} {
    --color: #2208cc;
    --box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;

    * {
        box-sizing: inherit;
    }

    svg {
        color: inherit;
        width: 1em;
        height: 1em;
        fill: currentColor
    }
}

.@{container}-hds {
    --gap: 12px;
    display: flex;
    align-items: stretch;
    width: fit-content;
    height: 40px;
    padding: 4px var(--gap);
    background-color: #f5f5f5;
    border: 1px solid #e5e0df;
    border-radius: 6px;
    box-shadow: var(--box-shadow);

    .@{container}-hd {
        position: relative;
        display: flex;
        align-items: center;
        cursor: pointer;
        padding: 0 10px;
        border-radius: 6px;

        .mark-item {
            display: flex;
            flex-direction: column;
            align-items: center;

            .mark-item-case {
                width: 100%;
                height: 4px;
                background-color: red;
            }
        }

        .mark-down {
            margin-left: 5px;
            opacity: .6;

            svg {
                font-size: 14px;
            }
        }


        .mark-tooltip {
            --bg-color: rgba(0, 0, 0, .8);
            position: absolute;
            top: 40px;
            left: 0;
            white-space: nowrap;
            width: auto;
            height: 36px;
            background-color: var(--bg-color);
            padding: 0 20px;
            align-items: center;
            justify-content: center;
            border-radius: 6px;
            z-index: 10;
            color: #fff;
            display: none;
            font-size: 14px;
            font-weight: 600;

            &::after {
                content: "";
                position: absolute;
                top: -12px;
                left: 5px;
                width: 0;
                height: 0;
                border: 6px solid transparent;
                border-bottom-color: var(--bg-color);
                z-index: 11;
            }

            .mark-hotkeys {
                opacity: .5;
                padding-left: 5px;
                font-size: 12px;
            }
        }

        &:hover {
            background-color: #ccc;

            .mark-tooltip {
                display: flex;
            }
        }
    }
}